import javax.swing.*;

class MainWindow extends JFrame {
	JButton button;
	
	public MainWindow() {
		this.button = new JButton("Hello world");
		this.getContentPane().add(button);
		this.pack();
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}
}
